#include "stdafx.h"
#include "multiscaletilesource.h"

namespace DeepZoomImage
{
	MultiScaleTileSource::MultiScaleTileSource()
	: m_ImageWidth(-1)
	, m_ImageHeight(-1)
	, m_TileWidth(0)
	, m_TileHeight(0)
	, m_TileOverlap(0)
	, m_TileBlendTime(0)
	, get_tile_func(NULL)
	, refcount(1)
	{
	}

	void MultiScaleTileSource::InvalidateTileLayer (int level, int tilePositionX, int tilePositionY, int tileLayer)
	{
		//if (HasHandlers (TileLayerInvalidatedEvent))
		//	Emit (TileLayerInvalidatedEvent, new TileLayerInvalidatedEventArgs (level, tilePositionX, tilePositionY, tileLayer));
	}

	void MultiScaleTileSource::ref()
	{
		refcount++;
	}
	void MultiScaleTileSource::unref()
	{
		refcount--;
		if ( refcount == 0 ) {
			delete this;
		}
	}
};
